<template>
	<view class="contact">
		<image class="img" src="http://www.itcast.cn/2018czydz/images/gywmban.jpg"></image>
		<view class="info">
			<view @click="phone" class="title">联系电话：19861833210( 点击拨打 )</view>
			<view class="title">校区地址：山东省济南市长清区山东师范大学大学路一号7#525宿舍</view>
		</view>
		<map class="map" :longitude="longitude" :scale="scale" :latitude="latitude" :markers="markers"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				longitude: 116.834804,
				latitude: 36.547241,
				scale: 15,
				markers: [{
					longitude: 116.837490,
					latitude: 36.546445,
					iconPath: '../../static/美丽山师.jpg',
					width: 20,
					height: 20
				}]
			}
		},
		methods: {
			phone() {
				uni.makePhoneCall({
					phoneNumber: '19861833210'
				})
			}
		}
	}
</script>

<style lang="scss">
	.contact {
		.img {
			width: 750rpx;
			height: 320rpx;
		}

		.info {
			padding: 10rpx 20rpx;
			font-size: 30rpx;

			view {
				line-height: 80rpx;
				border-bottom: 1px solid #eee;
			}
		}

		.map {
			width: 750rpx;
			height: 750rpx;
		}

		.title {
			font-size: 35rpx;
		}

	}
</style>
